-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle dark1b/bright1b #468
base: main
Are you sure you want to change the base?
Conversation
@geordie666, one question: with the on-going discussion in the twin desitarget PR, I realize I may have mis-interpreted one thing. is the following the approach we want:
in my current coding, I query both (dark, dark1b) ledgers for a dark tile, so that s likely a mistake -- I ll correct that tomorrow when nersc is back up. |
Yes, that's correct. It's a little hack-y but, now: DARK means only DARK. |
perfect, thanks for the confirmation -- and sorry I forgot about that, you surely already explained it to me! |
I'm sure I've missed it, but just confirming---
My naive reading of this code makes it look like we always read dark/dark1b and bright/bright1b ledgers and merge them, for both the dark and dark1b programs, which wasn't what I thought we wanted. |
thanks for the confirmation (and looking at the code!); I confirm the current code is not doing that, ie is wrong for dark tiles. I ll work on that today, now that nersc is back up, it s an easy fix. I ll also code the approach discussed here desihub/desitarget#833 (comment) for secondaries. |
with the last couple of commits, the code should now correctly handle the querying of the catalogs, as discussed. |
@schlafly, I think it s ok but double-checking in case: |
for info, I ve propagated the dark1b/bright1b cases in few functions used for the as previously, I ve generated two test tiles here [edit: I ve changed the ra,dec to 180,10 to have full coverage from the
as far as I can say, the fiberassign files look ok to me, ie formatted as we want; of course we d to run more massive tests once the targets are available over the full footprint! |
I m just a bit suprised by this https://data.desi.lbl.gov/desi/users/raichoor/fiberassign_dev/fiberassign_desi1b/20250221/999/fiberassign-999991.png plot, where one can see that the assigned |
mmhh... looks like that the assigned I m investigating, but I suspect it s because I didn t propagate the because those two samples ( |
ok found the issue: I had to enable the fiberassign/py/fiberassign/targets.py Lines 221 to 238 in 526e48f
without that, the LGE-only targets would be discarded (hence why mostly the LGE & BGS_ANY remained).
the results look better now; +1 for qa plots! I ve moved previous run to https://data.desi.lbl.gov/desi/users/raichoor/fiberassign_dev/fiberassign_desi1b/20250221/v0. |
mmhh.. tests are still failing after my small fix in the previous commit. @geordie666, I m not familiar with those, but could it be that it fails because there are, in the test scripts, lines like:
which uses desitarget , and the needed desitarget version is the one in development? (desihub/desitarget#833)
in which case, there s nothing to do until that desihub/desitarget#833 is merged + a desitarget/tag is created? fiberassign/.github/workflows/test.yml Line 29 in 77c7d81
just guessing... |
except that "failing checks" issue, I think I m happy with the current version. |
I'm embarrassed, but I don't remember what GOAL TYPE controls. Maybe which variety of effective time is used? Presumably we want to continue using the the normal LRG effective time (i.e., dark). That's less obvious for bright1b, but given that we likely don't want to develop a new effective time, probably we continue to use bright? Or am I missing what GOAL TYPE controls? |
I admit, it s not super-clear for me either where I thought it was used online by the ETC to choose the correct way to estimate the efftime, but I don t see any occurence of for the spectro. pipeline, from a quick check, it s indeed used to pick which so my 2 cents would be:
|
I hear you, but: conceptually, the dark (extended) LRG and bright BGS targets are still the defining targets of these extension programs. So I don't think we'd consider using a different GOALTYPE. |
allright, thanks for the input; I ve removed the |
This PR goal is to handle the
DARK1B / BRIGHT1B
programs for the DESI-Extension.It relies on desihub/desitarget#833 (thanks @geordie666!)
As of now, it is WIP, but I start the PR to initiate the discussion (e.g. on choices to be done).
Note that there are few hacks in the code (of course to be removed later):
dark1b
test ledgers+static catalogs:/pscratch/sd/a/adamyers/blub/dr9/2.8.0.dev5597/
;Some choices I did:
get_desitarget_paths()
: for main survey, now always consider 2 sets (e.g. dark+dark1b or bright+bright1b), for both the ledgers and the static catalogs;get_program_latest_timestamp()
: if dark or dark1b, parse both dark AND dark1b tiles (same for bright, bright1b);MTL_{HIGHEST,WANTED,CONTAINS}
columns:FIBERASSIGN
andTARGETS
extensions of thefiberassign-TILEID.fits.gz
file;fba-TILEID.fits
file; @ashleyjross please let me know if you d like me toI ve run two test tiles, one dark, one dark1b, with this first commit with these commands:
In case people would want to poke around with those, and let me know if there s something they re not happy with, I d appreciate.
Because of the duplicates-with-secondary issue, I ve disabled the
qa
here...New header keywords in the header:
MTL2
andTARG2
(those will always be for{BRIGHT,DARK}1B
, irrespective if the requested program is{BRIGHT,DARK}
or{BRIGHT,DARK}1B
):